<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $web_title;?></title>
<meta name="Keywords" content="<?php echo $web_keyword;?>" />
<meta name="Description" content="<?php echo $web_desc;?>" />
<link type="text/css" rel="stylesheet" href="<?php echo base_url();?>static/css/public.css" />
<script src='<?php echo base_url();?>static/js/jquery-1.5.1.min.js'></script>
<script>
function aLogin() {
	var login_form  = $('#login_form');
	login_form.submit();
}
</script>
</head>
<body>
<div class="header">
	<ul class="mn_menu clearfix">
		<li><a href="<?php echo site_url();?>">网站首页</a></li>
		<li><a href="<?php echo site_url('product/smaple');?>">采样中心</a></li>
		<li><a href="<?php echo site_url('product/buy');?>">采购信息</a></li>
		<li><a href="<?php echo site_url('product/sell');?>">供应信息</a></li>
		<li><a href="<?php echo site_url('article/dictionary');?>">纺织字典</a></li>
		<li><a href="<?php echo site_url('article/calc');?>">纺织计算器</a></li>
	</ul>
	<form action='<?php echo site_url('user/login');?>' method='post' id='login_form'>
		<div class="login_info">
			<?php 
				if (isset($this->session->userdata['name']) && !empty($this->session->userdata['name'])) {
			?>
				欢迎您：<b><?php echo $this->session->userdata['name'];?></b>   
				<a href="<?php echo site_url('home/index');?>" class="mgr10">个人中心</a>
				<a href="<?php echo site_url('product/release');?>" class="mgr10">发布信息</a>
				<a href="<?php echo site_url('order/index');?>" class="mgr10">我的购物车</a>
				<a href="<?php echo site_url('user/logout');?>">退出</a>
			<?php 
				} else{
			?>	
				<label>账号 </label><input type="text" name='account' class="ipt_m mgr15" maxlength='18'/>
				<label>密码 </label><input type="password" name='password' class="ipt_m" maxlength='26'/>
				<a href="javascript:void(0);" class="mgr10" onclick='aLogin();'>登陆</a><a href="<?php echo site_url('user/register');?>">注册</a>
			<?php
				}
			?>
		</div>
	</form>
</div>